how to solve problems on logarithms